<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditOutcomeTitle}"></h:outputText>
        </ui:define>
        <ui:define name="content">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.course}" for="course" />
                    <h:outputText id="course" value="#{outcomeController.selected.course.courseName}" title="#{bundle.course}" rendered="#{localeHelper.englishSet}" />
                    <h:outputText id="course" value="#{outcomeController.selected.course.courseNameNo}" title="#{bundle.course}" rendered="#{localeHelper.norwegianSet}" />
                    <h:outputLabel value="#{bundle.textEn}" for="text" />
                    <h:inputTextarea rows="4" cols="30" id="text" value="#{outcomeController.selected.text}" title="#{bundle.textEn}" />
                    <h:outputLabel value="#{bundle.textNo}" for="textNo" />
                    <h:inputTextarea rows="4" cols="30" id="textNo" value="#{outcomeController.selected.textNo}" title="#{bundle.textNo}" />
                    <h:outputLabel value="#{bundle.outcomeType}" for="outcomeType" />
                    <h:selectOneMenu id="outcomeType" value="#{outcomeController.selected.outcomeType}" title="#{bundle.outcomeType}" required="true" requiredMessage="#{bundle.OBLIG}">
                        <f:selectItems value="#{outcomeController.types}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{outcomeController.update}" value="#{bundle.SAVE}"/>
                <br />
                <br />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
